export interface Response<T> {
	code : number,
	msg : string | undefined,
	data : T
}

export interface LoginSchema {
	token : string
}

export interface UserSchema {
	id : number,
	openid : string,
	created_at : string,
	updated_at : string
}

export interface CheckSecretSchema {
	id : number,
	user_id : number,
	created_at : string,
	updated_at : string
}

export interface SavedSchema {
	saved : boolean
}

export interface ContentTypeSchema {
	label : string,
	value : number
}

export interface ContentSchema {
	id : number,
	secret_id : number,
	title : string,
	content : string | null,
	type : number
}

export interface ContentListSchema {
	count : number,
	list : ContentSchema[]
}

export interface FileSchema {
	id : number,
	storage : string,
	filename : string,
	path : string
}